﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Cadastros/Site.Master" AutoEventWireup="true" CodeBehind="ForumOS.aspx.cs" Inherits="CongregacaoOs.WebForm.Cadastros.ForumOS" %>

<%@ Register Src="~/Cadastros/MessageWindow.ascx" TagPrefix="uc1" TagName="MessageWindow" %>


<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="../Content/NewTheme/gridView.css" rel="stylesheet" />
    <style type="text/css">
        .DataForum {
            font-family: Verdana;
            font-size: 15px;
            color: black;
        }

        /*.HaderForum {
            font-style: italic;
            font-size: small;
            color: white;
            font-family: Verdana;
        }*/

        .auto-style1 {
            width: 151px;
        }
    </style>

    <script type="text/javascript">

        $(function () {
            $("#tabs").tabs();

            // fix the classes
            $(".tabs-bottom .ui-tabs-nav, .tabs-bottom .ui-tabs-nav > *")
              .removeClass("ui-corner-all ui-corner-top")
              .addClass("ui-corner-bottom");
        });

        $(function () {
            $("#radio").buttonset();
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">

    <div style="width: 80%; margin: 0 auto;">


        <div id="tabs" style="width: 100%; margin: 0 auto;">
            <ul>
                <li><a href="#tabs-1">Novo Post</a></li>
            </ul>
            <div class="tabs-spacer"></div>
            <div id="tabs-1">
                <label style="font-family: Arial; font-size: large; color: black;">Status da O.S</label><br />
                <asp:RadioButtonList ClientIDMode="Static" ID="radio" runat="server" RepeatDirection="Horizontal" AutoPostBack="True" OnSelectedIndexChanged="radio_SelectedIndexChanged">
                    <asp:ListItem Value="0" Enabled="false">AGUARDANDO</asp:ListItem>
                    <asp:ListItem Value="1">ATENDIMENTO</asp:ListItem>
                    <asp:ListItem Value="2">CONCLUÍDA</asp:ListItem>
                </asp:RadioButtonList>

                <label style="font-family: Arial; font-size: large; color: black;">Assunto</label><br />
                <asp:TextBox runat="server" ID="txtTitulo" Width="100%"></asp:TextBox>
                <label style="font-family: Arial; font-size: large; color: black;">Texto do Post</label><br />
                <asp:TextBox runat="server" ID="txtText" Width="100%" Height="150px" TextMode="MultiLine"></asp:TextBox>


                <asp:Button runat="server" ID="btnPostar" Text="Postar" OnClick="btnPostar_Click" />
                <asp:Button runat="server" ID="btnVoltar" Text="Voltar" OnClick="btnVoltar_Click" />


            </div>
        </div>
            <br />
        <div style="width: 100%; margin: 0 auto; font-size:medium; font-family:Verdana" >
            <asp:DataList ID="DataForum" runat="server" width="100%" ToolTip="Posts" BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Horizontal">
                <AlternatingItemStyle BackColor="#F7F7F7" />
                <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
                <ItemStyle VerticalAlign="Middle" BackColor="#E7E7FF" ForeColor="#4A3C8C" />
                <ItemTemplate>
                    <div>
                        <hr />
                        <table>

                            <tr>
                                <td>
                                    <b>Título:
                                <asp:Label ID="lblTit" runat="server" 
                                    Text='<%# DataBinder.Eval(Container,"DataItem.titulo") %>'></asp:Label>
                                    </b>
                                    |

                            <asp:Label ID="lblCod" runat="server" 
                                Text='<%# DataBinder.Eval(Container,"DataItem.DataCriacao") %>'></asp:Label>

                                    <br />
                                    <hr />
                                </td>
                                <td>
                                    <asp:Label ID="lblNome" runat="server"
                                        Text='<%# DataBinder.Eval(Container,"DataItem.NomeServo") %>'></asp:Label>
                                    <hr />
                                </td>
                            </tr>

                            <tr>
                                <td>
                                    <br />
                                </td>
                                <td>
                                    <br />
                                </td>
                            </tr>
                        </table>
                        <p align="justify" style="width: 100%">
                            <asp:Label ID="lblTexto" runat="server" 
                                Text='<%# DataBinder.Eval(Container,"DataItem.texto") %>'></asp:Label>
                        </p>

                        <br />
                    </div>
                </ItemTemplate>
                <SelectedItemStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                <SeparatorStyle BorderStyle="Dashed" />
            </asp:DataList>
        </div>



        <uc1:MessageWindow runat="server" ID="MessageWindow" />
    </div>
</asp:Content>

